package com.fjn.mybatis.dao;

import com.fjn.mybatis.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public interface EmployeeDynamicSql {
//    测试if/where
    public List<Employee> getEmpsByConditionIf(Employee emp);
//    测试trim
    public List<Employee> getEmpsByConditionTrim(Employee emp);
//    测试分支选择Swich-case
    public List<Employee> getEmpsByConditionChoose(Employee emp);
//    测试修改员工信息通过set封装
    public void updateEmp(Employee emp);
//    遍历员工表
    public List<Employee> foreachEmpsByCondition(@Param("ids")List<Integer> list);
//    批量保存员工
    public void addEmps(@Param("emps") List<Employee> emps);
}
